/* 报验单审核 */
<template>
    <div id="dialog-container">
        <el-dialog v-dialogDrag 
            :title="dialogTitle" append-to-body
            :visible.sync="dialogVisible" @close="$emit('update:show', false)" :before-close="handleClose" :show="show"
            :close-on-click-modal="false" width="700px">
            <el-form :model="form" :inline="true" size="small" label-width="100px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="检测类型：">
                            <el-input size="" v-model="form.sort" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="生产厂家：">
                            <el-input size="" v-model="form.name" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="委托人：">
                            <el-input size="" v-model="form.name" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="委托单位：">
                            <el-input size="" v-model="form.name" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="委托日期：">
                            <el-input size="" v-model="form.name" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="任务单号：">
                            <el-input size="" v-model="form.name" :disabled="true"></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
            </el-form>
            <el-table :data="tableData" border>
                <el-table-column type="index" label="序号" align="center" :resizable="false" width="50"></el-table-column>
                <el-table-column prop="" label="计量器具状态" :resizable="false" min-width="110"></el-table-column>
                <el-table-column prop="" label="任务类型" :resizable="false" min-width="90"></el-table-column>
                <el-table-column prop="" label="任务单号" :resizable="false" min-width="100"></el-table-column>
                <el-table-column prop="" label="出厂编号" :resizable="false" min-width="100"></el-table-column>
                <el-table-column prop="" label="物料号" :resizable="false" min-width="80"></el-table-column>
                <el-table-column prop="" label="规格" :resizable="false" min-width="60"></el-table-column>
                <el-table-column prop="" label="器具名称" :resizable="false" min-width="80"></el-table-column>
                <el-table-column prop="" label="统一编号" :resizable="false" min-width="90"></el-table-column>
                <el-table-column prop="" label="样品分码" :resizable="false" min-width="90"></el-table-column>
                <el-table-column prop="" label="附件" :resizable="false" min-width="100"></el-table-column>
            </el-table>
            <el-form :model="form" size="small" label-width="100px">
                <el-form-item label="审核结果：">
                    <el-radio-group v-model="form.name">
                        <el-radio label="同意"></el-radio>
                        <el-radio label="不同意"></el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="审核意见：">
                    <el-input type="textarea" v-model="form.name"></el-input>
                </el-form-item>
                <el-col :span="12">
                    <el-form-item label="审核人：">
                        <el-input size="" v-model="form.name" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="审核时间：">
                        <el-input size="" v-model="form.name" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
            </el-form>
            
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
                <el-button @click="dialogVisible = false">取 消</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                dialogTitle: '审核报验单',
                dialogVisible: this.show,
                form: {
                    name: ''
                },
                tableData: [],
                options: {},
                optionVal: '',
                showTest: false
            }
        },
        props: {
            show: {
                type: Boolean,
                default: false
            }
        },
        watch: {
            show() {
                this.dialogVisible = this.show;
            }
        },
        methods: {
            handleClose() {
                this.dialogVisible = false;
            }
        }
    }
</script>